#ifndef MOTION_H_INCLUDED
#define MOTION_H_INCLUDED
#include <devices_ext/promotion.h>
DECL_TASK_EXT( motion );
typedef enum motion_mid{
	ChoicesCommand = 0, /*0*/
    MtiData,
    SetMaxSpeed,
    SetMinSpeed,
	SetGraduateSpeed,   /*5*/
	SetGraduateAcc,
}MotionMid;
#define NR_MOTION_MID 6
extern Promotion xl, xr;
extern Promotion yl, yr;


void post_motion_command( pSysMsg msg, MotionMid mid );
void post_max_speed( pSysMsg msg, int val );
void post_min_speed( pSysMsg msg, int val );
void post_direction( pSysMsg msg, int val );

#endif
